package com.hgyc.mom.common.exception;


import com.hgyc.mom.common.enums.CodeMsg;

/**
 * 字段检查异常
 *
 * @author fengweijian
 * @version 1.0.0
 * @since 2022/4/22
 */
public class FieldCheckException extends RuntimeException{

    private String fieldName;

    private CodeMsg codeMsg;

    public FieldCheckException(String fieldName, CodeMsg codeMsg) {
        super(fieldName + codeMsg.getMsg());
    }
}
